import com.lin.bank.entity.TransactionRecord;
import org.junit.jupiter.api.Test;

import java.text.SimpleDateFormat;
import java.time.Instant;
import java.util.Date;

public class test {

    @Test
    void cs(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        String format = sdf.format(new Date());
        Date data = java.sql.Date.valueOf(format);
        System.out.println(data);
    }

}
